package cn.ronghuanet.permission.mapper;

import cn.ronghuanet.basic.mapper.BaseMapper;
import cn.ronghuanet.permission.domain.Role;
import cn.ronghuanet.permission.query.RoleQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {

    void deletePermissionByRoleId(Long roleId);

    // 如果mapper传入了多个对象作为参数,一定要在参数前面加@Param()
    void batchSaveRolePermission(@Param("roleId") Long roleId,@Param("permissionSns") List<String> permissionSns);

    List<String> getRolePermissionSns(Long roleId);
}
